import request from '@/utils/request'

// 获取城市列表信息
export const getCity = function (level) {
  return request.get('/area/city', { params: { level } })
}

// 关键词搜索小区
export const serchCommunity = function (name, id) {
  return request.get('/area/community', { params: { name, id } })
}

// 热门城市
export const hotCity = function () {
  return request.get('/area/hot')
}
